In [1]:
import numpy as np
from inet import utils
In [2]:
nPV = 2
matrix = np.loadtxt('../data/2_170411_01.syn', dtype=int)# load an example matrix
ncells = matrix.shape[0]
matrix
Out[2]:
In [3]:
matrix[:2][:,(0,1)] # II = matrix[ :nPV][ :,range(nPV)]
Out[3]:
In [4]:
utils.II_slice(matrix,2)
Out[4]:
In [5]:
utils.IE_slice(matrix,2)
Out[5]:
In [6]:
matrix[:2][:,(2,3,4,5,6)] # IE = matrix[ :nPV][ :,range(nPV,ncells)]
Out[6]:
In [7]:
utils.EI_slice(matrix,2)
Out[7]:
In [8]:
matrix[2:][:,(0,1)] # EI = matrix[nPV:][,:range(nPV)]
Out[8]:
In [ ]: